package com.java202411.repository.client;


import com.java202411.repository.table.UserRoleTable;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRoleDatabaseClient extends CrudRepository<UserRoleTable, Long> {
    List<UserRoleTable> findAllByUserId(@Param("userId") Long userId);
}
